<!-- Dusan Milic -->
<?php
include("konekcija_sa_bazom.php");

mysql_query("SET NAMES utf8");

$idkor=$_POST['idKor'];
$plus=$_POST['plus'];
if($plus){
$querry = "UPDATE prodavnica
SET brojPluseva = brojPluseva + 1
WHERE idKorisnik='$idkor';";

	mysql_query($querry) or die('ne radi');
}
else
{
	$querry = "UPDATE prodavnica
SET brojMinusa = brojMinusa + 1
WHERE idKorisnik='$idkor';";
	mysql_query($querry) or die('ne radi');
}
?>
<div class="dashes-top"></div>
           			 <div class="dashes-bottom"></div>
           			 <font size="+1">	
                     <?php	$query = "SELECT brojPluseva,brojMinusa FROM prodavnica WHERE idKorisnik =$idkor";
		   $result = mysql_query($query);
		   $row = mysql_fetch_array($result);
		   $plus=$row[0];
		   $minus=$row[1];	
			
					echo '<center><img src="images/plus.png" onClick="javascript:oceniPlus('.$idkor.')" alt="Plus" />'.$plus.':'.$minus.'		<img src="images/minus.png" onClick="oceniMinus('.$idkor.')"alt="Minus" /></center>';	        
		   
		   
?>